package com.h3c.nem.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(name = "eos-user", url = "localhost:8020")
@FeignClient(name = "${eos.user.name}", url = "${eos.user.url}")
public interface UserFeignClient {

    @GetMapping(value = "employee/findEmployeeById", consumes = {"application/json"}, headers = {"Authorization={Authorization}"})
    String findEmployeeById(@RequestParam("account") String account, @RequestParam("Authorization") String Authorization);

    @PostMapping(value = "account/token", consumes = {"application/json"})
    String getEosToken(@RequestBody String str);

}
